<template>
    <div class="banner" :style="{ color: changecolor }">
        <h2>哈哈呀</h2>
        <h2>小染呀</h2>
        <button @click="clickbanner">点击一下</button>
    </div>
    <div class="banner1">再来一个根呀</div>
</template>
<script>

export default {
    data() {
        return {
            changecolor: "blue"
        }
    },
    methods: {
        clickbanner() {
            this.changecolor = 'red'
        }
    }
}
</script>
<style scoped lang="less">
</style>